/*
* pps-cloud
*/
package com.pitop.cycle.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

import com.pitop.cycle.entity.CycleTime;

/**
 * 生产周期 api请求熔断器
 * @author berton
 */
@FeignClient(value = "berton-provider", fallback = CycleTimeFeignApiImpl.class)
public interface CycleTimeFeignApi {
    /**
     * 查询CycleTime一个详情信息
     * @param id id
     * @param code 编码
     * @return BeanRet
     */
    @GetMapping(value = "/cycleTime/load")
    CycleTime load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 根据条件id查询CycleTime一个详情信息
     *
     * @param id id
     * @return BeanRet
     */
    @GetMapping(value = "/cycleTime/load/id/{id}")
    CycleTime loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件code查询CycleTime一个详情信息
     *
     * @param code 编码
     * @return BeanRet
     */
    @GetMapping(value = "/cycleTime/load/code/{code}")
    CycleTime loadByCode(@RequestParam("code") java.lang.String code);

    /**
     * 删除CycleTime
     *
     * @return BeanRet
     */
    @DeleteMapping("/cycleTime/delete")
    void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 查询CycleTime信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/cycleTime/list")
    List<CycleTime> list(@RequestBody CycleTime cycleTime,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);


    /**
     * 查询CycleTime信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/cycleTime/list/by")
    List<CycleTime> listByPk(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);




    /**
    * 统计CycleTime信息数量根据主键
    *
    * @return 总条数
    */
    @GetMapping(value = "/cycleTime/count/by")
    Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);

    /**
    * 统计CycleTime信息数量
    *
    * @return 总条数
    */
    @PostMapping(value = "/cycleTime/count")
    Integer count(@RequestBody CycleTime cycleTime);



    /**
     * 创建CycleTime
     *
     * @return BeanRet
     */
    @PostMapping("/cycleTime/build")
    CycleTime build(@RequestBody CycleTime cycleTime);


    /**
     * 修改CycleTime
     *
     * @return BeanRet
     */
    @PutMapping("/cycleTime/modify")
    CycleTime modify(@RequestBody CycleTime cycleTime);



}
